package com.pp.dao;

import com.pp.model.Furn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FurnMapper {
    int insert(Furn furn);

    List<Furn> selectByPage(@Param("offset") int offset,
                            @Param("pageSize") int pageSize,
                            @Param("search") String search);

    int count( @Param("search") String search);

    Furn selectById(Integer id);

    int update(Furn furn);

    int delete(Integer id);
}
